package com.nbsaas.boot.project.rest.convert;

import com.nbsaas.boot.project.data.entity.DataModelField;
import com.nbsaas.boot.project.api.domain.request.DataModelFieldRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 请求对象转换成实体对象
*/

public class DataModelFieldEntityConvert  implements Converter<DataModelField, DataModelFieldRequest> {

    @Override
    public DataModelField convert(DataModelFieldRequest source) {
        DataModelField result = new DataModelField();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

